package com.redis.Dao;

import com.redis.vo.ShopEntity;
import com.redis.vo.SpikeEntity;
import org.apache.ibatis.annotations.Param;

public interface ShopDao {
    //查询商品
    ShopEntity shopNum(int shopId);
    //修改商品的库存
    int updateNumber(int shopId);
    //插入秒杀信息到spike表
    int insertSpike(@Param("shopId") int shopId,@Param("userId") int userId,@Param("userName") String userName);
    //通过shopId查询商品名
    String queryShopName(int shopId);
    //通过商品名查询
    ShopEntity seek(String shopName);
}
